workspace("toluapp") --解决方案名
architecture("x86_64") --架构；windows平台：【x86】32位【x86_64】64位
startproject("tolua++") --默认启动工程

--region configurations
configurations({"Debug", "Release"}) --指定解决方案配置。指定多个后，可允许在IDE中选择配置进行构建；只指定1个的话，要使用其他配置进行构建还得再改configurations

filter "configurations:Debug"
runtime "Debug"
symbols "on"

filter "configurations:Release"
runtime "Release"
optimize "on"
--endregion

filter "system:windows"
systemversion "latest"

flags {
    "MultiProcessorCompile"
}

--region 自定义变量
local outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}/" --输出文件夹名
binDir = "%{wks.location}/bin/" .. outputdir
objDir = "%{wks.location}/bin/obj/" .. outputdir
includeDir = {
    ["lua"] = "%{wks.location}/lua/include",
    ["tolua"] = "%{wks.location}/tolua/include"
}
--endregion

--region 解决方案包含的文件夹
include("learn")
include("tolua++")
include("tolua")
include("lua")
--endregion
